FROM registry.cn-hangzhou.aliyuncs.com/base-linux/centos7.6:jkd8
MAINTAINER this is Micro-provicer image <boren>
RUN mkdir /home/provicer
RUN mkdir /home/provicer/logs
#导入jar包
ADD provicer-0.0.1-SNAPSHOT.jar  /home/provicer/provicer.jar
# 暴露服务端口
EXPOSE 8024
#数据卷挂载
VOLUME ["/home/provicer/logs"]
WORKDIR /home/provicer/
# entrypoint：设定容器启动时第一个运行的命令及参数
#ENTRYPOINT ["/bin/bash","start.sh"]
ENTRYPOINT ["java","-Duser.timezone=GMT+8","-Xms256m","-Xmx512m","-XX:+HeapDumpOnOutOfMemoryError","-XX:HeapDumpPath=./","-XX:NewSize=256m","-XX:MaxNewSize=512m","-jar","provicer.jar","--spring.profiles.active=pro"]

